package com.lizhe.springboot_jsp_shiro.dao;

import com.lizhe.springboot_jsp_shiro.eneity.Perms;
import com.lizhe.springboot_jsp_shiro.eneity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 类描述:
 *
 * @author Lz on 2022-05-19
 */
@Mapper
public interface UserDao {

    void save(User user);

    //根据用户名查询所有角色
    User findByUserName(String username);

    User findRolesByUserName(String username);

    //根据角色id查询权限集合
    List<Perms> findPermsByRoleId(String id);

}
